/**
 * Created by graysoft on 2017/3/2.
 */

import echarts from "echarts";
import "./styles/root.scss";

const myChart = echarts.init(document.getElementById("root"));
myChart.setOption({
  title: {
    text: "ECharts 入门示例"
  },
  series: [{
    name: "访问来源",
    type: "pie",
    radius:"55%",
    data: [
        {value: 400, name: "搜索引擎"},
        {value: 335, name: "直接访问"},
        {value: 310, name: "邮件营销"},
        {value: 274, name: "联盟广告"}
    ]
  }]
});
